package Dao;
import user.entity.User;

import java.util.List;

public interface IUserDao {
    //增加用户
    public boolean addUser(User user);
    //删除
    public boolean deleteUser(String num);
    //修改
    public boolean updateUser(String num,User user);
    //查询全部
    public List<User> queryAllUser();
    //按学号查询
    public User queryByNum(String num);
    //按姓名查询
    public List<User> queryByName(String name);
    //按年级查询
    public List<User> queryByGrade(String grade);
    //判断其是否存在
    boolean IsExist(String num);

}
